// RectWindow.h
// by Charles Mc Auley
// "Programming AutoCAD 2000 with ObjectARX"


#ifndef RECTWINDOW_H
#define RECTWINDOW_H

#include <gept2dar.h>

class RectWindow
{
	public:
		
		RectWindow();	// Constructor
		~RectWindow();	// Destructor

		virtual void drawWindow(AcDbBlockTableRecord* pBlkTableRecord);
				
		void setWindowRows(int rowQty);
		void setWindowCols(int colQty);
		virtual void setWindowHeight(double windHeight);
		void setWindowLength(double windLength);
		void setWindowStartPoint(AcGePoint2d lowLeftPoint);

	protected:

		double getWindowLength() const;
		double getWindowHeight() const;
		AcGePoint2d getWindowStartPoint() const;
		double getIntrFrameThk() const;
		double getRectFrameThk() const;
		Adesk::Boolean drawIntBar(AcDbBlockTableRecord* pBlkTableRecord,
									AcGePoint2dArray intBarAr);

	private:

		Adesk::Boolean drawRectFrame(AcDbBlockTableRecord* pBlkTableRecord,
									AcGePoint2dArray &inrRectFrame);


		int getWindowRows() const;
		int getWindowCols() const;


		int rows;
		int cols;
		double rectFrameLen;
		double rectFrameHt;
		double rectFrameThk;
		double intrFrameThk;
		AcGePoint2d lowLeftPt;
};

#endif